package com.taoyibao.hongcanting.model;

import java.io.Serializable;

/**
 * @author TangAnna
 * @description: 菜品
 * @date :${DATA} 14:05
 */
public class DishModel implements Serializable {

    /**
     * dish_classId : c06
     * dish_code : d403
     * dish_name : 菜心粒肉片粥
     * dish_price : 12
     * dish_unit : 份
     * dish_pic :
     * dish_sort : 59
     * dish_salecount : 2
     * dish_form : 这里是食材
     * dish_count : 0
     * dish_discount_price : 0
     */

    public String dish_classId; //dish_classId和class_code都代表分类的ID相同意义  不同的接口赋值不一样
    public String class_code;
    public String dish_code;
    public String dish_name;
    public double dish_price;
    public String dish_unit;
    public String dish_pic;
    public int dish_sort;
    public int dish_salecount;
    public String dish_form;
    public int dish_count;
    public double dish_discount_price = -1;
    public String class_name;
    public String dish_practicetaste;//口味和做法拼接值
    public String pic_url;//购物车使用的图片地址

    public String getDish_practicetaste() {
        return makeup + "," + taste;
    }

    /**
     * 做法  直接就是用户选择的中文
     */
    public String makeup = "0";
    /**
     * 口味 直接就是用户选择的中文
     */
    public String taste = "0";

    @Override
    public String toString() {
        return "DishModel{" +
                "dish_classId='" + dish_classId + '\'' +
                ", dish_code='" + dish_code + '\'' +
                ", dish_name='" + dish_name + '\'' +
                ", dish_price=" + dish_price +
                ", dish_unit='" + dish_unit + '\'' +
                ", dish_pic='" + dish_pic + '\'' +
                ", dish_sort=" + dish_sort +
                ", class_name=" + class_name +
                ", dish_salecount=" + dish_salecount +
                ", dish_form='" + dish_form + '\'' +
                ", dish_count=" + dish_count +
                ", makeup=" + makeup +
                ", taste=" + taste +
                ", dish_discount_price=" + dish_discount_price +
                '}';
    }
}
